package com.bbcloud.dao;

import com.bbcloud.pojo.Device;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeviceMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Device record);

    int insertSelective(Device record);

    Device selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Device record);

    int updateByPrimaryKey(Device record);

    List<Device> selectDevicesWithUserId(@Param("userId") String userId);

    Device selectByinvitationCode(@Param("invitationCode")String invitationCode);
}